package com.backstage.dao;

import com.backstage.pojo.Goods;
import com.backstage.utils.PageBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    @Select("select count(*) from goods_table")
    int selectGoodsTotal();

//    @Select("select * from goods_table")
    List<Goods> selectGoodsList(Goods record);
}